package com.travelgroup.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.travelgroup.enums.GroupStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "拼团信息")
public class TourGroup {
    @TableId(type = IdType.AUTO)
    @Schema(description = "拼团id")
    private Long id;

    @Schema(description = "最大成员数")
    private Integer maxMembers;

    @Schema(description = "当前人数")
    private Integer currentMembers;

    @Schema(description = "当前价格")
    private BigDecimal currentPrice;

    @Schema(description = "拼团状态（0-招募中、1-已成团、2-已取消）")
    private GroupStatus status;

    @Schema(description = "截止时间")
    private LocalDateTime expireTime;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Boolean deleted;
}
